QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17


win32-msvc {
    # MSVC 编译器的设置
    QMAKE_CXXFLAGS += /O3
    QMAKE_LFLAGS += /LTCG
    QMAKE_CXXFLAGS += /arch:SSE2 /fp:fast
}

RC_ICONS = icon.ico

INCLUDEPATH += $$PWD/header
INCLUDEPATH += $$PWD/header/extern

# CONFIG += console

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    sources/DataWriter.cpp \
    sources/general.cpp \
    sources/logreader.cpp \
    sources/filereader.cpp \
    sources/logreader.cpp \
    sources/main.cpp \
    sources/mainwindow.cpp \
    sources/rulereader.cpp

HEADERS += \
    headers/DataWriter.h \
    headers/extern/xlsxabstractooxmlfile.h \
    headers/extern/xlsxabstractooxmlfile_p.h \
    headers/extern/xlsxabstractsheet.h \
    headers/extern/xlsxabstractsheet_p.h \
    headers/extern/xlsxcell.h \
    headers/extern/xlsxcell_p.h \
    headers/extern/xlsxcellformula.h \
    headers/extern/xlsxcellformula_p.h \
    headers/extern/xlsxcelllocation.h \
    headers/extern/xlsxcellrange.h \
    headers/extern/xlsxcellreference.h \
    headers/extern/xlsxchart.h \
    headers/extern/xlsxchart_p.h \
    headers/extern/xlsxchartsheet.h \
    headers/extern/xlsxchartsheet_p.h \
    headers/extern/xlsxcolor_p.h \
    headers/extern/xlsxconditionalformatting.h \
    headers/extern/xlsxconditionalformatting_p.h \
    headers/extern/xlsxcontenttypes_p.h \
    headers/extern/xlsxdatavalidation.h \
    headers/extern/xlsxdatavalidation_p.h \
    headers/extern/xlsxdatetype.h \
    headers/extern/xlsxdocpropsapp_p.h \
    headers/extern/xlsxdocpropscore_p.h \
    headers/extern/xlsxdocument.h \
    headers/extern/xlsxdocument_p.h \
    headers/extern/xlsxdrawing_p.h \
    headers/extern/xlsxdrawinganchor_p.h \
    headers/extern/xlsxformat.h \
    headers/extern/xlsxformat_p.h \
    headers/extern/xlsxglobal.h \
    headers/extern/xlsxmediafile_p.h \
    headers/extern/xlsxnumformatparser_p.h \
    headers/extern/xlsxrelationships_p.h \
    headers/extern/xlsxrichstring.h \
    headers/extern/xlsxrichstring_p.h \
    headers/extern/xlsxsharedstrings_p.h \
    headers/extern/xlsxsimpleooxmlfile_p.h \
    headers/extern/xlsxstyles_p.h \
    headers/extern/xlsxtheme_p.h \
    headers/extern/xlsxutility_p.h \
    headers/extern/xlsxworkbook.h \
    headers/extern/xlsxworkbook_p.h \
    headers/extern/xlsxworksheet.h \
    headers/extern/xlsxworksheet_p.h \
    headers/extern/xlsxzipreader_p.h \
    headers/extern/xlsxzipwriter_p.h \
    headers/filereader.h \
    headers/general.h \
    headers/logreader.h \
    headers/mainwindow.h \
    headers/rulereader.h


FORMS += \
    mainwindow.ui

TARGET = OBCUDataTestTool


INCLUDEPATH += $$PWD/headers/ $$PWD/headers/extern

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

CONFIG(debug, debug|release) {
    # Debug 模式下的配置
    DEFINES += DEBUG
    win32: LIBS += -L$$PWD/libs/ -lQXlsx-d
    macx: LIBS += -L$$PWD/libs/ -lQXlsx-d
}

CONFIG(release, debug|release) {
    # Release 模式下的配置
    DEFINES += RELEASE
    win32: LIBS += -L$$PWD/libs/ -lQXlsx
    macx: LIBS += -L$$PWD/libs/ -lQXlsx
}


INCLUDEPATH += $$PWD/''
DEPENDPATH += $$PWD/''



